<nav class="navbar-default navbar-static-side" role="navigation">
    <div class="sidebar-collapse">
        <ul class="nav metismenu" id="side-menu">
            <li class="nav-header">
                <div class="dropdown profile-element">
                    <span><img alt="image" class="img-circle" src="{{asset('assets/img/profile_small.jpg')}}" /></span>
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                        <span class="clear">
                            <span class="block m-t-xs"><strong class="font-bold">{{Auth::guard('admin')->user()->account_number}}</strong></span>
                            <span class="text-muted text-xs block">@if(Auth::guard('admin')->user()->id==1)超级管理员@else管理员@endif<b class="caret"></b></span>
                        </span>
                    </a>
                    <ul class="dropdown-menu animated fadeInRight m-t-xs">
                        <li><a href="#">个人简介</a></li>
                        <li><a href="#">通讯录</a></li>
                        <li><a href="#">邮箱</a></li>
                        <li class="divider"></li>
                        <li><a href="{{url('admin/logout')}}">退出登录</a></li>
                    </ul>
                </div>
                <div class="logo-element">菜单</div>
            </li>
            <li @if(Route::currentRouteName()=='admin.index') class="active" @endif>
                <a href="{{url('admin/index')}}">
                    <i class="fa fa-th-large"></i> <span class="nav-label">控制面板</span>
                </a>
            </li>
            @if(isset($comData['top'])&&count($comData['top']))
                @foreach($comData['top'] as $v)
            <li @if(in_array($v['id'],$comData['openarr'])) class="active" @endif>
                <a href="#">
                    <i class="fa {{ $v['icon'] }}"></i>
                    <span class="nav-label">{{$v['display_name']}}</span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level collapse">
                    @foreach($comData[$v['id']] as $vv)
                    <li @if(in_array($vv['id'],$comData['openarr'])) class="active" @endif>
                        <a href="{{URL::route($vv['name'])}}">
                            <i class="fa fa-circle-o"></i>{{$vv['display_name']}}
                        </a>
                    </li>
                    @endforeach;
                </ul>
            </li>
                @endforeach
            @endif
        </ul>
    </div>
</nav>